package com.sos.core.cards
{

	public class CardTargetInputRole extends CardTargetInput
	{
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		public function CardTargetInputRole(data:Object=null)
		{
			// Clears all
			clear();
			// If data is provided, initializes the card loading the data
			if (data != null) load(data);
		}
		
		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------
		
		public function get role():CardTargetInputRoleType
		{
			return _parameter as CardTargetInputRoleType;
		}
		
		// -------------------------------------------------------------------------------
		// PRIVATE METHODS
		// -------------------------------------------------------------------------------
		
		override protected function setParameter(param:Object):void
		{
			_parameter = CardTargetInputRoleType.getBySign(param as String);
		}
		
	}
}